var foo;

var foo,
  bar = false,
  baz;

function foo() {
  var foo = 0;
  var bar;
};

function foo() {
  var foo;
  var bar = foo;
};

let a;

function foo() {
  let a = 1,
    b;
  if (a) {
    let c = 3,
      d = null;
  }
};

function foo() {
  let a;
  const b = false;
  var c;
};
namespace myLib {
  let numberOfGreetings: number;
};

namespace myLib1 {
  const foo: number;
  namespace myLib2 {
    let bar: string;
    namespace myLib3 {
      let baz: object;
    }
  }
};